package com.shoping.common.exception;

import org.springframework.http.HttpStatus;

/**
 * 限流异常
 *
 * @author gaoqiangwei
 */
public class RateLimitException extends BaseException {

    private static final long serialVersionUID = -6605859700154199563L;

    public RateLimitException(String errMsg) {
        super(String.valueOf(HttpStatus.INTERNAL_SERVER_ERROR.value()), errMsg);
    }

    public RateLimitException(String code, String errMsg) {
        super(code, errMsg);
    }
}
